<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class PageModel extends Model
{

	/**
	 * 获取页面内容
	 *
	 * @param  integer $pageID
	 * @return array
	 */
	public function getPageByID($pageID)
	{
		return $this->find($pageID);
	}


	/**
	 * 删除页面
	 *
	 * @param array $pageID
	 * @return null
	 */
	public function deletePageByID($pageID)
	{
		$where['page_id'] = array('in', $pageID);
		$this->where($where)->delete();
	}

}


/* End of file PageModel.class.php */
/* Location: ./App/Lib/Model/PagesModel.class.php */
